package com.mes.service.lc;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.mes.dao.lc.MaterialStockMapper;
import com.mes.entity.lc.MaterialStock;
import com.mes.entity.lc.Stockfy;

/**
 * 物料库存 service 层 实现接口
 * @author Administrator
 *
 */
@Service
public class MaterialStockServiceImpl implements MaterialStockService {

	@Autowired
	MaterialStockMapper materialStockMapper;
	
	/**
	 * 带条件的分页查询
	 * @param stockfy
	 * @return
	 */
	@Override
	public List<MaterialStock> selectfycx(Stockfy stockfy) {
		return materialStockMapper.selectfycx(stockfy);
	}

	/**
	 * 查询总条数
	 * @param stockfy
	 * @return
	 */
	@Override
	public int selectfycxcont(Stockfy stockfy) {
		return materialStockMapper.selectfycxcont(stockfy);
	}

	/**
	 * 查询所有的物料库存
	 * @return
	 */
	@Override
	public List<MaterialStock> selectMaterialStock() {
		return materialStockMapper.selectMaterialStock();
	}
	
	
	
	
}
